PATHMac OS 8 and 9 Developer Documentation > Human Interface Toolbox > Window Manager >

Programming With the Mac OS 8.5 Window Manager


GetWindowProxyFSSpec

Obtains a file system specification structure for the file that is associated with a window.

pascal OSStatus GetWindowProxyFSSpec (
                     WindowPtr window,
                     FSSpec *outFile);
window
A value of type WindowPtr . Pass a pointer to the window for which you wish to determine the associated file.
outFile
A pointer to an FSSpec structure. On return, this structure contains a copy of the file system specification data for the file associated with the specified window. See Inside Macintosh: Files for more information on the FSSpec data type.
function result
A result code. See Result Codes.
DISCUSSION

You can use the GetWindowProxyFSSpec function to obtain identifying information about a proxy file: its volume reference number, directory ID, and file name. See Supporting Window Proxy Icons for examples of how your application can provide proxy icon support in its document windows.

VERSION NOTES

Available with Mac OS 8.5 and later.

SEE ALSO

The function SetWindowProxyFSSpec .


© 1999 Apple Computer, Inc. – (Last Updated 18 March 99)